home *** CD-ROM | disk | FTP | other *** search
- EXECUTE(1) DOS COMMANDS EXECUTE(1)
-
- NAME
- EXECUTE : To execute a command file with argument substitution.
-
- SYNOPSIS
- EXECUTE <command file> [{arguments}]
-
- TEMPLATE
- EXECUTE "COMMANDFILE,ARGUMENTS"
-
- PATH
- C:
-
- DESCRIPTION
- EXECUTE executes a command (script) file. The command file can
- give special directives to EXECUTE by starting a line with special
- keywords.
-
- The syntax off a script file is as follow:
- A keyword always starts a line and starts with a dot (.):
- .KEY (or .K) Argument template. The parameters as specified by a list
- of keyword names separated by commas. The names can be followed by
- a slash(/) and a letter:
- /A : the variable must be supplied.
- /K : the variable is optional.
- /F : final argument. The variable contains the rest of the
- command line.
- /S : switch. The variable contains the argument name if the switch
- is set, or is empty if it is not.
-
- .DOT ch : change the DOT char (.) to ch.
- .BRA ch : change the BRA char (default "<") to ch.
- .KET ch : change the KET char (default ">") to ch.
- .DOLLAR ch : (or .DOL) change the default-char (default "$") to ch
- .DEF : keyword value Give default to parameter.
- .<space> : Comment line
- .<new line> : blank comment line.
- .\ A blank remark.
-
- Before execution, AmigaDOS substitutes any items enclosed by BRA
- and KET ("<" and ">"). Such items can consist of one keyword or one
- keyword and a default value for AmigaDOS to use if the keyword is unset.
- The keyword and the default value must be separated by the default-char
- ($ by default). For example, <myvar$MyDefault> will become the value of
- myvar if var is set, and MyDefault if it isn't.
-
- If the file does not start with a DOT (.) AmigaDOS assumes that
- there is no other DOT keyword in the file.
- If they are DOT keyword in the files, the file is copied into the
- logical directory T: (if it is ASSIGNed) or into the T directory.
-
- The CLI number can be referred to by the characters <$$>.
- All information after the ";" character on a line is ignored. This
- is one way to insert comments into a command file.
-
- If the "s" bit of a command line is set, the file can be executed
- by entering the name of the file on a CLI or SHELL. (The file must
- be in a directory belonging to the PATH.) So, if the "s" bit of
- MyCom is set, "MyCom" is equivalent to "EXECUTE MyCom".
-
- SEE ALSO
- ASSIGN, PROTECT.
-
- EXAMPLE
- > EXECUTE MySript My_Argument
-